package homework.h02;

import java.util.Scanner;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/9/9 11:46
 * @package homework.h02
 * @description 作业1
 *      编写程序实现一下功能
 *      请输入您的年龄
 *      52
 *      您的年龄是52岁
 */

public class UserAge {
    public static void main(String[] args) {

        System.out.println("请输入您的年龄");

       /*
        Scanner scanner = new Scanner(System.in);
        int age = scanner.nextInt();
        System.out.println(String.format("您的年龄是%d岁",age));

        简写:
        */
        System.out.println(String.format("您的年龄是%d岁",new Scanner(System.in).nextInt()));
    }
}
